Skip to content

Update integration tests to reflect changes to Arduino Lint output and rules #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 10, 2021
Merged

Update integration tests to reflect changes to Arduino Lint output and rules #61

merged 3 commits into from
Aug 10, 2021

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Aug 10, 2021

Recent improvements to Arduino Lint caused the golden logs to become outdated:

The table package used to format Arduino Lint output fills out the full column width with trailing whitespace.

The generated and golden master logs contain mutable strings of different length which are replaced before comparing them
in the integration tests. The resulting mismatch will cause a spurious integration test failure.

The solution is to strip the trailing whitespace before doing the comparison.

per1234 added 3 commits August 9, 2021 20:02
Recent improvements to Arduino Lint caused the golden logs to become outdated:

- Improved formatting of output
- Correctly catch folder target symlinks, which were previously missed by Arduino Lint, but then caught by the engine's
  own code
The table package used to format Arduino Lint output fills out the full column width with trailing whitespace.

The generated and golden master logs contain mutable strings of different length which are replaced before comparing them
in the integration tests. The resulting mismatch will cause a spurious integration test failure.

The solution is to strip the trailing whitespace before doing the comparison.
A copy/paste error resulted in a potentially confusing comment.
@per1234 per1234 added type: bug topic: infrastructure Related to project infrastructure labels Aug 10, 2021
@per1234 per1234 merged commit 271cdff into arduino:main Aug 10, 2021
@per1234 per1234 deleted the fix-integration-test branch August 10, 2021 07:51
@rsora rsora added the type: imperfection Perceived defect in any part of project label Sep 22, 2021
@per1234 per1234 self-assigned this Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants